OAction("last", {
	all: function(decider){
	
		if (!decider) {
		
			return this.get(this.size()-1);
			
		} else {
		
			var found = null;
			this.each(true, function(o){
				if (OCheck(o, decider)) {
					found = o;
					return false;
				}
			});
			return found;

		}
		
	}
});

OProvides("objx.last");